#include<iostream>
using namespace std;
int main()
{
	int p=0, answer=1;
	cin >> p;
	p= min(p,12);
	for(int i=1;i<=p;i++)
	answer=answer*i;
	cout << p << "!=" << answer << endl;
	return p; 
 } 
